<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucProductListByCat.ascx.cs" Inherits="Modules_HugKid_wucProductListByCat" %>

<div class="rightpage">
    <div style="margin-bottom: 10px;"><img src="App_Themes/HugKidTheme/images2/bannerPro.jpg"></div>
     <div class="pro-special">
        <h2 style="color:#C90F00;"><asp:Label ID="lbProductCatName" runat="server"></asp:Label></h2>
          
        <asp:DataList ID="dlProductListByCat" runat="server" RepeatColumns="5">
            <ItemTemplate>
                <td class="itempro" valign="top" style="padding-bottom:15px;">
                    <a href="Default.aspx?Page=ProductDetails&ProductId=<%# Eval("ItemID") %>"><img src="<%# Eval("Image") %>" style="width:144px; height:144px; overflow:hidden;" /></a>
                    <p><a href="Default.aspx?Page=ProductDetails&ProductId=<%# Eval("ItemID") %>" style="color:#000000;">
                    <%# ((Eval("ItemName").ToString().Length > 17) ? Eval("ItemName").ToString().Substring(0, 17) + " ..." : Eval("ItemName")) %></a></p>
                    <p class="price"><%# Eval("Atribute1") %></p>
                </td>
                <td width="<%# ((Container.ItemIndex % 6) == 0 && Container.ItemIndex != 1) ? 0 : 22 %>" style="padding-bottom:15px;" ></td>
            </ItemTemplate>
        </asp:DataList>  
    </div>
</div>